function Pagination(doc, container, width, height, operator, now, options) {
  this._doc = doc;
  this._container = container;
  this._operator = operator;
  this._now = now;
  this._options = options;
  this._unique = MiscUtils.unique();
  this._createElements();
  this._gui = AbsPagination.gui(this._unique, this._doc);
}

Pagination.prototype._createElements = function() {
  var table, tr, td, input;
  table= this._doc.createElement('table');
  table.style.height = '18px';
  table.cellPadding = 0;
  table.cellSpacing = 0;
  table.style.textAlign = 'center';
  this._container.appendChild(table);
  
  tr=table.insertRow(-1);
  td = tr.insertCell(-1);
  td.style.width = '100%';
  td.style.verticalAlign = 'top';
  var itable= this._doc.createElement('table');
  itable.cellPadding = 0;
  itable.cellSpacing = 0;
  td.appendChild(itable);
  
  itr=itable.insertRow(-1);
  td = itr.insertCell(-1);
  td.style.height = '20px';
  td.style.padding = '0 0 0 5px';
  var a = this._doc.createElement('a');
  a.id = this._unique + '_first_link';
  a.href = '#';
  a.style.fontSize = '13px';
  td.appendChild(a);
  
  td = itr.insertCell(-1);
  td.style.padding = '0 5px 0 0';
  var a = this._doc.createElement('a');
  a.id = this._unique + '_firstb_link';
  a.style.fontSize = '13px';
  a.style.color = '#000';
  td.appendChild(a);
  
  td = itr.insertCell(-1);
  var a = this._doc.createElement('a');
  a.id = this._unique + '_previous_link';
  a.href = '#';
  a.style.fontSize = '13px';
  td.appendChild(a);
  
  td = itr.insertCell(-1);
  td.style.padding = '0 5px 0 0';
  var a = this._doc.createElement('a');
  a.id = this._unique + '_previousb_link';
  a.style.color = '#000';
  a.style.fontSize = '13px';
  td.appendChild(a);
  
  td = itr.insertCell(-1);
  td.style.textAlign = 'center';
  td.style.fontSize = '13px';
  td.id = this._unique + '_numbers_div';
  
  td = itr.insertCell(-1);
  td.style.padding = '0 0 0 5px';
  var a = this._doc.createElement('a');
  a.id = this._unique + '_next_link';
  a.href = '#';
  a.style.fontSize = '13px';
  td.appendChild(a);
  
  td = itr.insertCell(-1);
  td.style.padding = '0 5px 0 0';
  var a = this._doc.createElement('a');
  a.id = this._unique + '_nextb_link';
  a.style.color = '#000';
  a.style.fontSize = '13px';
  td.appendChild(a);
  
  td = itr.insertCell(-1);
  var a = this._doc.createElement('a');
  a.id = this._unique + '_last_link';
  a.href = '#';
  a.style.fontSize = '13px';
  td.appendChild(a);
  
  td = itr.insertCell(-1);
  var a = this._doc.createElement('a');
  a.id = this._unique + '_lastb_link';
  a.style.fontSize = '13px';
  a.style.color = '#000';
  td.appendChild(a);
  
  td = itr.insertCell(-1);
  td.style.textAlign = 'right';
  td.style.paddingLeft = '10px';
  var input = DOMUtils.createInput('', '', 'text', '', null)
  input.id = this._unique + '_page_input';
  input.style.textAlign = 'center';
  input.style.width = '30px';
  input.style.height = '12px';
  td.appendChild(input);
  
  td = itr.insertCell(-1);
  td.style.textAlign = 'left';
  var btn3 = DOMUtils.createInput('', this._unique + '_jump_button', 'button', 'Go', null)
  btn3.style.width = '28px';
  btn3.style.fontSize = '9px';
  btn3.className = "button";
  td.appendChild(btn3);
  
  td = tr.insertCell(-1);
  td.style.textAlign = 'left';
  td.style.fontSize = '10pt';
  td.style.fontWeight = 'bold';
  td.style.padding = '0 0 3px 3px';
  td.style.verticalAlign = 'bottom';
  td.id = this._unique + '_items_div';
  
  td = tr.insertCell(-1);
  td.style.fontSize = '10pt';
  td.style.textAlign = 'left';
  td.style.verticalAlign = 'bottom';
  td.style.padding = '0 0 3px 5px';
  td.style.whiteSpace = 'nowrap';
  td.appendChild(this._doc.createTextNode('Results in '));
  
  td = tr.insertCell(-1);
  td.style.textAlign = 'left';
  td.style.fontSize = '10pt';
  td.style.fontWeight = 'bold';
  td.style.verticalAlign = 'bottom';
  td.style.padding = '0 5px 3px 3px';
  td.id = this._unique + '_pages_div';
  
  td = tr.insertCell(-1);
  td.style.height = '22px';
  td.style.textAlign = 'left';
  td.style.fontSize = '10pt';
  td.style.padding = '0 5px 3px 0';
  td.style.verticalAlign = 'bottom';
  td.appendChild(this._doc.createTextNode('Pages'));
  
};